react-server675fbba4
react-serverfilesdocssrcpagesmdGET.[...slug].server.mjs
docs/src/pages/md/GET.[...slug].server.mjsmjs7.2 KiBbf198d38

  // If title exists and content doesn't already start with it, prepend
  if (title && !markdown.startsWith("# ")) {
    markdown = `# ${title}\n\n${markdown}`;
  }

  return new Response(markdown, {
    headers: {
      "Content-Type": "text/markdown; charset=utf-8",
    },
  });
}